home *** CD-ROM | disk | FTP | other *** search
/ Commodore Free 21 / Commodore_Free_Issue_21_2008_Commodore_Computer_Club.d64 / t.b guide 6.2 < prev    next >
Text File  |  2023-02-26  |  13KB  |  406 lines

  1. u
  2. In the Beginning Part 6
  3. \Lord Ronin from Q-Link\
  4.  
  5.  Chapter 6, Section 2
  6.  
  7.  Back to the only one sided notched.
  8. If you have a 1571 in your collection.
  9. Take the disk directory and add it up.
  10. Add to that the blocks free, and
  11. subtract it from 1328. Should get a 0
  12. if it is a 1571 formatted disk. If so,
  13. put it off to the side for now.
  14.  
  15.  However if you don't have a 1571
  16. drive and you have single notched
  17. disks. These disks are tested and are
  18. not what you would think as factory
  19. disks of some sort. Yes feel free to
  20. load them up and see what is there. As
  21. I said some factory disk games use the
  22. reverse side for the data. But you
  23. can't write or save to that side. Have
  24. to turn the disk over. If that isn't
  25. the case. Then you have a disk that
  26. has a virgin side. The previous owner
  27. didn't notch it and it hasnever been
  28. used.
  29.  
  30.  But how to notch it? Well the easiest
  31. is a disk notcher. Which you may have
  32. in the box of stuff. Take a look, it
  33. is in different forms. But the basics
  34. are the same. On the top is a push
  35. button about thumb size. Along one
  36. side is a long slot. If you find that
  37. sort of thing, plastic or metal, I
  38. have both. Then you probably have a
  39. disk notcher. Why didn't the guy notch
  40. the disk? Well disks didn't come
  41. double notched for the most part. You
  42. do a hundred or even ten at a time,
  43. and you will see why. I did over a
  44. dozen each month for the users group.
  45. Hated that task. Ones hand gets very
  46. sore. Anyway, if you have one. Just
  47. slide the non notched side into that
  48. slot.
  49.  
  50. Get it in tight both to the inside and
  51. to the top of the notcher. Then press
  52. down on the spring loaded button. Hey
  53. if it feels like they put in a truck
  54. coil for that spring. You have the
  55. same type as I started with at my
  56. beginning. Well now if things worked
  57. out. You will have a bit of the
  58. plastic jacket come out the bottom.
  59. Safety note, grab that and toss it
  60. away if you have pets or small kids.
  61. The notch should be as deep and
  62. exactly at the same level as the
  63. original one. Just on the other edge
  64. of the disk. OK I admit that there are
  65. times that I don't get it just right.
  66. So back in the notcher it goes.
  67.  
  68.  What if you don't have a notcher? A
  69. reason why the disks in your
  70. collection may all be just one sided
  71. used. Some users didn't know that they
  72. could notch the disk and use the other
  73. side. But if you see disks, looking at
  74. the top or label side that have a
  75. weird sideways V cut. Or a half round
  76. cut. The previous owner used the
  77. cheaper and more dangerous method of
  78. disk notching. I would suggest hunting
  79. around on the web, the net and locally
  80. to find one laying about. A disk
  81. notcher I mean.
  82.  
  83.  
  84.  But failing that task and wanting to
  85. get to the C= right now. Here is what
  86. you do, and it is dangerous to the
  87. disk. You can use either a pair of
  88. scissors, that is the style that makes
  89. the sideways V cut. Also the most
  90. dangerous of the two methods. Or you
  91. can use a paper hole punch. That is
  92. what made the half circle looking
  93. notch. I met one guy that was expert
  94. enough to use an exacto knife. I don't
  95. suggest that one unless you have good
  96. eyes and very steady hands. I fit
  97. neither of those classifications.
  98.  
  99.  
  100.  Most people would take the sleeve,
  101. that is the paper holder for the disk.
  102. Line it up level with the existing
  103. notch. Then carefully clip with either
  104. of the above tools a little notch on
  105. the side. Sounds easy? Well here is
  106. the problem. Inside that disk jacket,
  107. the plastic part, is the round
  108. magnetic media. Clip that and the disk
  109. is trash for the most part. OK
  110. depending on how much is on the disk.
  111. You may be able to save the files to
  112. another disk. But don't risk it. If
  113. you have to use this method. Well you
  114. can see the depth of the factory
  115. notch. Go less than that to be safe.
  116. Or the disk is fairly well ruined.
  117.  
  118.  That all being said in as much depth
  119. and warning as possible. Time to
  120. format the disk. Despite any fast
  121. loader carts or jiffy dos. We are
  122. going to do it this way.
  123.  
  124. open15,8,15,"n0:disk name,**":close15
  125.  
  126.  OK in as little technical talk as
  127. possible. You are opening a
  128. communications path to the disk drive.
  129. That is the 8 part. The 15 and there
  130. are two of them there, well it is
  131. complicated and to be as brief as
  132. possible. This is the channel to send
  133. and to receive information from the
  134. disk drive. I use 15 as it is common
  135. and 15 is the one that will send back
  136. any error. OK you can use up to 255 as
  137. the channel number as that is how many
  138. there are from what I have been told.
  139. Gotta have those commas for the pause
  140. direction thinggy. Don't worry about
  141. that part.
  142.  
  143. Just copy that into your format line.
  144. Quotes are needed to set up what you
  145. are going to do, yeah sort of like the
  146. print statement. Now the N0: part is
  147. for formatting the disk. The command
  148. to format. Disk name is what ever you
  149. want up to 16 characters and yes you
  150. can use spaces. Those two ** things,
  151. are to represent the two characters
  152. from the KB that you use to
  153. specifically code this disk. End the
  154. command with the close of the quotes.
  155. Thsymbol separates commands on a line.
  156. Since we opened 15 now we have to
  157. close 15.
  158.  
  159.  Enough technical talk. Really won't
  160. mean a lot to you till much later on.
  161. Sort of a little teeny bit of ground
  162. work on some techy stuff. After you
  163. typed open15,8,15,"n0:disk
  164. name,**":close15 Press return and you
  165. will hear the disk drive rumble, grunt
  166. and perhaps even make a grinding
  167. rattling noise. Light may flash 
  168. rapidly, causing you to worry that you
  169. did something  wrong. That is the head
  170. setting up for the formatting. All
  171. that track and half track with sector
  172. stuff. Not time to go into that stuff.
  173. Head just has to go into the right
  174. place.
  175.  
  176.  May hear a clicking noise coming from
  177. the drive. That is the head moving one
  178. track at a time out of the 35. Drive
  179. will eventually stop. Green light will
  180. be out and the READY will be on the
  181. screen with the flashing cursor. Well
  182. if everything goes right. There can be
  183. some problems and that is another
  184. section to deal with for more advanced
  185. beginning. Suffice it that if the
  186. stuff written above doesn't happen.
  187. You got a bad disk or drive. Sorry but
  188. that part is for later on in the
  189. series.
  190.  
  191.  Check the directory to see if it did
  192. format correctly. Did you get the name
  193. and ID code right? Probably, but there
  194. could be another problem. I have had
  195. to do the format more than once on the
  196. same disk side. Not because I did
  197. anything wrong. Just that disks that
  198. are 10 years and older. That haven't
  199. been used, like that side 2 part. Need
  200. to be formatted 3 or 4 times.
  201.  
  202. What happens is that it stops during
  203. the format. Either the clicking of the
  204. head movement stops real fast. There
  205. is almost a lort of purr like noise at
  206. the end of a format, at least on my
  207. system. OR the click starts at the
  208. steady rate and then slows down.
  209. Exactly why, I don't know, just pass
  210. it along that the disk can be set in
  211. its ways and needs to be hit a few
  212. times with the format command to work.
  213.  
  214.  Might get to this again later. But
  215. for right now, here are some other
  216. commands. To save space, my fingers
  217. and your eyes. Lets just go with it
  218. stated that each of these needs the
  219. open15,8,15, part and after the quotes
  220. the :close15 part. OK you can be short
  221. and use oP in lower case to open and
  222. cL to close.
  223.  
  224. "s0:filename" This will scratch the
  225. name of the file you select. Scratch
  226. means that it isn't on the directory
  227. anymore. But it is still physically on
  228. the disk. Until you either record some
  229. other programme thing over it or
  230.  
  231. "v0:" and that is validate. Closest to
  232. that on other platforms is defrag, or
  233. so I have been told. Don't have any
  234. experience. Validate picks up the bits
  235. and in a simple term, tightens up the
  236. disk space. One book I read said to
  237. validate after every three scratches.
  238. I don't as a rule myself. More like 5
  239. or 8. This moves stuff around on the
  240. disk. Which will destroy the scratched
  241. files. Right the feds can't read the
  242. disk. <SEG>
  243.  
  244. "n0:filename" No this isn't format.
  245. There isn't the 2 character id code.
  246. This is new the disk. Basically it
  247. just erases the directory. Sort of
  248. tear out the table of contents for a
  249. book. Files are still there and with
  250. tools can be recovered. A fast format
  251. way that has some drawbacks and I know
  252. long time crackers that won't use this
  253. command.
  254.  
  255. "i0:" Initialise the disk. Some books
  256. say to do this every time you put
  257. another disk in the drive. Main reason
  258. is that if there is a chance that the
  259. id code of one disk is the same as
  260. another disk. Well the computer will
  261. work as if it is the same disk. At
  262. least in the BAM, or Block
  263. Availibility Map. I have also seen it
  264. as Block Allocation Map. In short that
  265. is the disk roadmap where things are
  266. located on the disk. Hard to drive in
  267. Liverpool England, if you are using a
  268. Portland Oregon Map. In the computer
  269. case the result can be. You write over
  270. things on the disk. Because the old
  271. map said it was empty.
  272.  
  273.  Lets say that after all of that dull
  274. stuff. You have a disk that is ready
  275. and we are going back to the Variable
  276. thing now. V V% V$ are the three
  277. types. Yeah I know they just love to
  278. use X in the examples. But I am
  279. antiestablishment.
  280.  
  281.  V% give the whole number. V gives the
  282. number with decimals and V$ is for
  283. printing text. Well there are 26
  284. letters and 10 numbers that you can
  285. use for variable names. Meaning that
  286. you have 36 possibilities for a
  287. variable? Well I cheat and programme
  288. in lower case. Using Upper case
  289. characters as well. Tip here is that
  290. not all upper case work that way.
  291. Still not to worry. 36 is a big
  292. number. Well it gets bigger. You see
  293. the book takes time to bring his up.
  294. But you are not limited to V$. Nope
  295. you can have V1$-V0$ as well as
  296. VA$-VZ$ 26 letters and 10 numbers,
  297. that you can use singly and in two
  298. characters for your variable. Makes
  299. that number a bit higher. Though a bit
  300. early in this drivel. Variables can
  301. also be reused in programmes. We, OK I
  302. am not ready to go into that at this
  303. time. Lets end this part with the
  304. understanding that when you change the
  305. value of a variable. The new one
  306. completely takes over the old value.
  307. Book says it with the example 
  308.  
  309. X=X+1.
  310.  
  311.  Next comes the IF THEN statement.
  312. Simply put. IF this part is true THEN
  313. go to this. Conditioner thing for the
  314. programme. Book gives the following
  315. thing to type in.
  316.  
  317. new <type in and press return. Clears
  318. the memory for you of anything left
  319. behind. Additive: most of the time>
  320.  
  321. 10ct=0
  322. 20?"commodore 64"
  323. 30ct=ct+1
  324. 40if ct<5then20
  325. 50end
  326.  
  327.  Remember to press return at the endof
  328. each line. A common fault in doing
  329. type ins is forgetting that keypress.I
  330. am very guilty of that. Now type rU
  331. and see what happens.
  332.  
  333.  You get the word printed out 5 times.
  334. Lets figure out why. Well the secret
  335. is in line 10. Here you see a two
  336. character variable called ct. Think of
  337. that as a short form of "CounT". This
  338. is set by the "=" sign to be at 0.
  339. Next line is the stock print
  340. statement. Telling the computer what
  341. we want to print. Now we have that
  342. "ct" again. This time it is set to add
  343. 1 to the value of ct. Seeing how a
  344. variable can be used more than once.
  345. 40 asks the question is ct less than
  346. 5. If so then go back to line 20.
  347. Which is the print line and we keep
  348. going around till ct is 5. At that
  349. point the programme moves to the next
  350. line, which is end and that shuts off
  351. the prg.
  352.  
  353.  Book doesn't go any farther in a use
  354. of IF THEN. Well it is written for the
  355. first timer. I use it in some of my
  356. work to send the programme to a
  357. specific area. IF certain conditions
  358. are met. THEN it goes to that area of
  359. the programme. One that comes to my
  360. mind is a programme I wrote for AD&D
  361. experience point calculations. Merely
  362. took the data from the book and made
  363. it a programme. There are over 10
  364. basic things for the start. These are
  365. the Hit Die of the monster. IF HD=8
  366. THEN 300, is sort of the line that I
  367. wrote. User had to type in the HD
  368. value. That became the variable and
  369. the math started for the calculations
  370. on that specific line. Have seen a lot
  371. of simple menu programmes that use the
  372. same IF THEN style to load programmes.
  373.  
  374.  At this point you may want to save
  375. the little prg to disk. we did the
  376. tape one earlier. On a blank line type
  377.  
  378. save"name file",8 <press return> Give
  379. it what ever name you want, and it
  380. should be making the disk spin and you
  381. will in a short time see that ready
  382. and cursor flashing again.
  383.  
  384.  So there are some weird things to use
  385. in a programme. I mean like that "<"
  386. thing above. Here is a chart of them
  387. and what they mean.
  388.  
  389. <     less than
  390. >     greater than
  391. =     equal to
  392. <>    not equal to
  393. >=    greater than or equal to
  394. <=    less than or equal to
  395.  
  396.  
  397.  Not a great help at this time.
  398. Something for future reference.
  399.  
  400.  That is followed by the FOR NEXT
  401. LOOPS. But that and the example will
  402. be in the next part. Out of space
  403. again. Talk too much I guess <BG>
  404.  
  405.  
  406.